// {app_root}/app/model/trainingInRotation.js
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const conn = app.mongooseDB.get('pl24');

  const trainingInRotationSchema = new Schema({
    tempUserId: String,
    userId: String,
    nickname: String,
    avatar: String,
    ipAddr: String,
  });

  return conn.model('trainingInRotation', trainingInRotationSchema);
};

// // {app_root}/app/model/book.js
// module.exports = app => {
//   const mongoose = app.mongoose;
//   const Schema = mongoose.Schema;
//   const conn = app.mongooseDB.get('db2');

//   const BookSchema = new Schema({
//     name: { type: String },
//   });

//   return conn.model('Book', BookSchema);
// };

